﻿<UserControl x:Class="Gao.Poker.App.Game.ApplyView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Margin="5">
            <TextBlock Text="姓名：" Margin="10,5,0,5" VerticalAlignment="Center"/>
            <TextBox Name="txtName" Width="100" Margin="0,5,0,5" />
            <TextBlock Text="会员号：" Margin="5,5,0,5" VerticalAlignment="Center"/>
            <TextBox Name="txtCardNo" Margin="0,5,0,5" Width="100"/>
            <Button x:Name="btnSearch" Margin="80,5,5,5" Width="45" VerticalAlignment="Center" Style="{DynamicResource Orrange}" Content="查询" RenderTransformOrigin="0.491,0.394" />
        </StackPanel>
        <DataGrid Grid.Row="1" Margin="1,1,1.2,1" VerticalAlignment="Top" RowHeight="30" AutoGenerateColumns="False"
                      SelectionMode="Single"  CanUserAddRows="True" IsReadOnly="True"
                      FontSize="16" Height="297" Name="dgMembers" >
            <DataGrid.Columns>
                <DataGridTextColumn Header="卡号" Width="160" Binding="{Binding Path=CardNo}"/>
                <DataGridTextColumn Header="姓名" Width="120" Binding="{Binding Path=Name}"/>
                <DataGridTextColumn Header="手机号" Width="100" Binding="{Binding Path=Telephone}"/>
                <DataGridTextColumn Header="积分" Width="*" Binding="{Binding Path=Points}"/>
            </DataGrid.Columns>
        </DataGrid>
        <Button Grid.Row="2" Content="确定" Name="btnSubmit" Width="60" Margin="5" Height="30" Style="{DynamicResource Orrange}"/>
    </Grid>
</UserControl>
